package 设计模式.观察者模式;

public class WatcherImpl implements IWatcher {

	private String name;

	@Override
	public void update(String str) {
		System.out.println(name+":"+str);
	}

	public WatcherImpl(String name) {
		this.name = name;
	}

}